<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<title>首页</title>
<meta charset="utf-8" />
<meta name="renderer" content="webkit">
<base href="<%=basePath%>">
<link rel="stylesheet" href="css/radius.css" type="text/css"></link>
<%@include file="../collect/meta.jsp"%>
<link rel="stylesheet" href="${ctx }/assets/css/jquery-ui.min.css" />
<script src="${ctx }/js/marquee.js"></script>
<script src="${ctx }/js/returnTop.js"></script>
<style>
#scrollText div a {
	color: #a94442;
	font-size: 20px;
	font-weight: bold;
}
</style>
</head>
<body lang="zh-cn">
	<div class="wrapper">
		<c:import url="/muser/musertop.jsp"></c:import>
		<div class="main-container" id="main-container">
			<div class="main-container-inner">
				<c:import url="/muser/muserleft.jsp"></c:import>
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<ul class="breadcrumb">
							<li><i class="icon-home home-icon"></i>首页</li>
						</ul>
					</div>
					<div class="page-content">

						<div class="row">
							<div class="col-sm-12 infobox-container">
								<div
									style="background:#f2dede;padding:5px;margin:0 0 10px 0;height:45px;line-height:45px;">
									<div style="background:#f2dede;padding:5px;margin:0 0 10px 0;">
										<div class="" style="font-size:14px;" id="scrollText">
											<c:forEach items="${broadcasts }" var="broadcast" begin="2"
												end="5">
												<c:if test="${broadcast.level == 1 }">
													<div style="float:left;">
														<span style="padding-right:30px; color: #a94442;">
															<i class="icon-volume-up bigger-170" style="margin-right:5px;"></i> <a
															href="broadcastaction!lookMiniBroadcast?broadcast.id=${broadcast.id }"
															target="_blank">${broadcast.title }</a> </span>
													</div>
												</c:if>
											</c:forEach>
										</div>
									</div>
								</div>

								<div class="infobox infobox-pink">
									<div class="infobox-icon">
										<i class="icon-smile"></i>
									</div>

									<div class="infobox-data">
										<span class="infobox-data-number">${dateView }</span>
										<div class="infobox-content">日期</div>
									</div>
								</div>

								<div class="infobox infobox-green">
									<div class="infobox-icon">
										<i class="icon-envelope"></i>
									</div>

									<div class="infobox-data">
										<span class="infobox-data-number">0</span>
										<div class="infobox-content">短信余额</div>
									</div>
								</div>

								<div class="infobox infobox-orange2">
									<div class="infobox-icon">
										<i class="icon-cny"></i>
									</div>

									<div class="infobox-data">
										<span class="infobox-data-number">${rbalance }</span>
										<div class="infobox-content">账户余额</div>
									</div>
								</div>

								<div class="space-18"></div>

								<div class="infobox infobox-green infobox-small infobox-dark">
									<div class="infobox-icon">
										<i class="icon-shopping-cart"></i>
									</div>

									<div class="infobox-data">
										<a href="mbalance!getShopConsume" class="infobox-content">今日交易</a>
										<div class="infobox-content">${tradeCount }</div>
									</div>
								</div>


								<div class="infobox infobox-blue infobox-small infobox-dark">
									<div class="infobox-icon">
										<i class="icon-cny"></i>
									</div>

									<div class="infobox-data">
										<a href="mbalance!getShopConsume" class="infobox-content">今日收入</a>
										<div class="infobox-content">${dateMoney }</div>
									</div>
								</div>
								
								<div class="infobox infobox-pink infobox-small infobox-dark">
									<div class="infobox-icon">
										<i class="icon-usd"></i>
									</div>

									<div class="infobox-data">
										<a href="mbalance!getShopBalance" class="infobox-content">今日充值</a>
										<div class="infobox-content">${dateBalance }</div>
									</div>
								</div>

								<div class="infobox infobox-grey infobox-small infobox-dark">
									<div class="infobox-icon">
										<i class="icon-group"></i>
									</div>

									<div class="infobox-data">
										<div class="infobox-content">新增会员</div>
										<div class="infobox-content">${increaseMember }</div>
									</div>
								</div>

							</div>

							<div class="col-sm-12" style="height: 60px;"></div>
							<div class="col-sm-6">
								<div class="widget-box">
									<div class="widget-header widget-header-flat">
										<h4 class="lighter smaller">
											<i class="ace-icon fa fa-star blue"></i> <b>最新动态</b>
										</h4>
									</div>

									<div class="widget-body">
										<div class="widget-main">
											<div class="row">
												<div class="col-xs-12">
													<ul class="list-unstyled spaced">
														<c:forEach items="${broadcasts }" var="broadcast">
															<c:if test="${broadcast.level == 1 }">
																<li>
																<i class="icon-ok fa-check bigger-110 green"></i>
																<a
																	href="broadcastaction!lookMiniBroadcast?broadcast.id=${broadcast.id }"
																	target='_blank'> 
																		${broadcast.title } </a></li>
															</c:if>
														</c:forEach>
													</ul>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>

							<div class="col-sm-6">
									<div class="alert alert-block alert-success">
										<button type="button" class="close" data-dismiss="alert">
											<i class="icon-remove"></i>
										</button>
	
										<p style="font-size:15px;font-weight:bold;">欢迎大家使用MICRM系统分店管理平台。</p>
	
										<p>
											<a class="btn btn-sm btn-success"
												href="${ctx }/muser/member_shopping.jsp">购物结算</a>
										</p>
									</div>
							</div>
						</div>
						<div
							style="position: fixed;top: -9999px;right: -9999px;display:none;"
							id="soundsw"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<a href="#" id="btn-scroll-up"
		class="btn-scroll-up btn btn-sm btn-inverse"
		style="position: fixed; bottom: 0;"> <i
		class="icon-double-angle-up icon-only bigger-110"></i> </a>
	</div>
	<div class="push"></div>
	</div>
	<c:import url="/collect/down.jsp"></c:import>
	<script type="text/javascript">
		//防dropmenu刷新收回
		$(document).ready(function() {
			$('.home > a').css("color", "red");
		});

		try {
			ace.settings.check('main-container', 'fixed')
		} catch (e) {
		}
		try {
			ace.settings.check('breadcrumbs', 'fixed')
		} catch (e) {
		}
	</script>
</body>
</html>
